//****************************************************************
//* Copyright (c) 2004 Ford Motor Company. All Rights Reserved.
//*
//* $$Workfile:   CatalogFacade.java  $$
//* $$Revision:   1.3  $$
//* $$Author:   aponte  $$
//* $$Date:   Dec 12 2008 13:33:30  $$
//*
//*****************************************************************
package ar.com.ford.it.fullEconomics.facade;

import java.sql.Timestamp;
import java.util.Collection;
import ar.com.ford.it.fullEconomics.exception.FullEconomicsException;
import ar.com.ford.it.fullEconomics.logic.CatalogLogic;
import ar.com.ford.it.fullEconomics.persistence.dto.Ncas012VehicleVw;
import ar.com.ford.it.fullEconomics.persistence.dto.Ncas101CatalogVw;
import com.ford.it.persistence.PersistenceException;

public class CatalogFacade {

	/**
	 * Busco los catalogos que no tengan volumenes asociados
	 * 
	 * @param fechaIn
	 * @param fechaOut
	 * @return
	 * @throws PersistenceException
	 */
	public Collection<Ncas101CatalogVw> findCatalogWithoutVolume(
			Timestamp fechaIn, Timestamp fechaOut) throws FullEconomicsException {

		CatalogLogic catalogLogic = new CatalogLogic();
		return catalogLogic.findCatalogWithoutVolume(fechaIn, fechaIn);

	}
	
	/**
	 * Busco los catalogos por vehiculo y fecha
	 * 
	 * @param fechaIn
	 * @param fechaOut
	 * @return
	 * @throws PersistenceException
	 * @throws FullEconomicsException 
	 */
	public Collection<Ncas101CatalogVw> findCatalogsByVehicleDate(Ncas012VehicleVw vehicleLine,
			Timestamp fechaIn, Timestamp fechaOut) throws FullEconomicsException {

		CatalogLogic catalogLogic = new CatalogLogic();
		return catalogLogic.findCatalogsByVehicleDate(vehicleLine, fechaIn, fechaOut);

	}

}
